package net.hn.hnms.biz.quality.request;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.Digits;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * Author: ly
 * 煤质计划表
 */
@Data
@ApiModel("煤质计划表")
public class CoalQualityPlanReq extends BaseReq {
    @ApiModelProperty(value = "主键ID")
    private String coalQualityPlanId;
    @ApiModelProperty(value = "计划编号")
    private String planCode;
    @ApiModelProperty(value = "计划名称")
    private String planName;
    @ApiModelProperty(value = "计划类型")
    @NotBlank(message = "计划类型不能为空")
    private String planType;
    @ApiModelProperty(value = "计划开始时间")
    @NotBlank(message = "请选择计划日期")
    private String startDate;
    @ApiModelProperty(value = "计划结束时间")
    private String endDate;
    @ApiModelProperty(value = "灰份（%）")
    @Digits(integer = 10, fraction = 2, message = "灰份（%）格式不正确")
    @DecimalMin(value = "0.00", message = "灰份（%）格式不正确")
    @NotNull(message = "灰份（%）不能为空")
    private BigDecimal ash;
    @ApiModelProperty(value = "全水份（%）")
    @Digits(integer = 10, fraction = 2, message = "全水份（%）格式不正确")
    @DecimalMin(value = "0.00", message = "全水份（%）格式不正确")
    @NotNull(message = "全水份（%）不能为空")
    private BigDecimal moistureTotal;
    @ApiModelProperty(value = "含矸率（%）")
    @Digits(integer = 10, fraction = 2, message = "含矸率（%）格式不正确")
    @DecimalMin(value = "0.00", message = "含矸率（%）格式不正确")
    @NotNull(message = "含矸率（%）不能为空")
    private BigDecimal shaleContent;
    @ApiModelProperty(value = "低位发热量(MJ/KG)")
    @Digits(integer = 10, fraction = 2, message = "低位发热量(MJ/KG)格式不正确")
    @DecimalMin(value = "0.00", message = "低位发热量(MJ/KG)格式不正确")
    @NotNull(message = "低位发热量(MJ/KG)不能为空")
    private BigDecimal netCalorificValue;
    @ApiModelProperty(value = "煤矿编码")
    private String mineCode;
}









